import { fetchApi } from './index';

// 获取并格式化MCP服务数据
export const getFormattedMCPServers = async () => {
  const rawServers = await fetchApi('/api/mcp/servers');
  return rawServers.map((server: string) => ({
    value: server,
    label: server
  }));
};